const mixin = {
    data(){
        return{
            // screenHeight:window.innerHeight,
            screenHeight: document.body.clientHeight,
            totalHeight:document.body.clientHeight-230
        }
    },
    mounted(){
        /* 窗口或框架被调整大小时发生 */
        window.onresize = () => {
            this.screenHeight=document.body.clientHeight
            this.totalHeight=this.screenHeight-230
        //    console.log()
           console.log(this.screenHeight,this.totalHeight)
          };
    }
}
export default mixin;